/*
//
//              INTEL CORPORATION PROPRIETARY INFORMATION
//  This software is supplied under the terms of a license  agreement or
//  nondisclosure agreement with Intel Corporation and may not be copied
//  or disclosed except in  accordance  with the terms of that agreement.
//    Copyright (c) 2007-2008 Intel Corporation. All Rights Reserved.
//
//
*/

#include "umc_defs.h"
#if defined(UMC_ENABLE_AVS_VIDEO_ENCODER)

#include "umc_avs_enc_tables.h"

namespace UMC
{

const
Ipp32u CBPOfMacroblock2Code[AVS_CODING_TYPES][64] =
{
    {
        4,  16, 17, 19, 14, 9,  22, 8,
        11, 21, 10, 7,  12, 6,  5,  1,
        35, 47, 48, 38, 46, 36, 50, 26,
        45, 52, 41, 28, 37, 23, 31, 2,
        43, 51, 56, 39, 55, 33, 62, 27,
        54, 60, 40, 32, 42, 24, 29, 3,
        49, 53, 57, 25, 58, 30, 59, 15,
        61, 63, 44, 18, 34, 13, 20, 0
    },

    {
        0,  19, 16, 15, 18, 11, 31, 13,
        17, 30, 12, 9,  10, 7,  8,  1,
        4,  42, 38, 27, 39, 33, 59, 26,
        40, 58, 35, 25, 29, 24, 28, 3,
        5,  51, 52, 37, 50, 43, 63, 44,
        53, 62, 48, 47, 34, 45, 49, 6,
        14, 55, 56, 36, 54, 41, 60, 21,
        57, 61, 46, 22, 32, 20, 23, 2
    }
};

} // namespace UMC

#endif // defined(UMC_ENABLE_AVS_VIDEO_ENCODER)
